Wheel Class Reference

#include <Wheel.h>

Inheritance diagram for Wheel:

TraffEduObject List of all members.

Public Member Functions

 Wheel ()
 Wheel (string pathname, float scale)
void draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)

Detailed Description

A class to implement one type of TraffEduObject, that is Wheel.


Constructor & Destructor Documentation

Wheel::Wheel (   ) 
 

A constructor. default constructor.

Wheel::Wheel (  string  pathname,
float  scale
) 
 

A constructor.

Parameters:
pathname string argument defining path name.
scale is a float argument defining scale factor of the vehicle model. initalize path and scale factor of the wheel model.


Member Function Documentation

void Wheel::draw (  osg::ref_ptr< osg::Group >  root,
int  animationFlag = -1
)  [virtual]
 

a normal member taking two arguments.

Parameters:
root is an osg::ref_ptr to osg::Group which the model node will be added.
animationFlag is an integer flag to specify whether the root is animation window root or not. this function adds the wheel model node to the root.

Implements TraffEduObject.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:01 2006 by  doxygen 1.4.6-NO